/*
 * @Author: silence
 * @Date: 2022-05-18 16:52:42
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-05-27 15:23:05
 * @Description: 
 */


import 'MyEntityLog.dart';

class VipRulesEntity {
  String? id;
  String? name;

  /**原价 */
  String? original_money;
  String? unit_price;

  /** Android售价金额  */
  String? money;
  String? money_iap;
  String? product_id;
  String? number;
  String? extend;

  /**优惠提示 */
  String? tips;
  String? remark;

  /**优惠标签 */
  String? tags;

  VipRulesEntity({
    this.id,
    this.name,
    this.original_money,
    this.unit_price,
    this.money,
    this.money_iap,
    this.product_id,
    this.number,
    this.extend,
    this.tips,
    this.remark,
    this.tags,
  });

  VipRulesEntity.fromJson(Map<String, dynamic> json) {
    id = MyEntityLog.handleString(json, 'id');
    name = MyEntityLog.handleString(json, 'name');
    original_money = MyEntityLog.handleString(json, 'original_money');
    unit_price = MyEntityLog.handleString(json, 'unit_price');
    money = MyEntityLog.handleString(json, 'money');
    money_iap = MyEntityLog.handleString(json, 'money_iap');
    product_id = MyEntityLog.handleString(json, 'product_id');
    number = MyEntityLog.handleString(json, 'number');
    extend = MyEntityLog.handleString(json, 'extend');
    tips = MyEntityLog.handleString(json, 'tips');
    remark = MyEntityLog.handleString(json, 'remark');
    tags = MyEntityLog.handleString(json, 'tags');
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['original_money'] = this.original_money;
    data['unit_price'] = this.unit_price;
    data['money'] = this.money;
    data['money_iap'] = this.money_iap;
    data['product_id'] = this.product_id;
    data['number'] = this.number;
    data['extend'] = this.extend;
    data['tips'] = this.tips;
    data['remark'] = this.remark;
    data['tags'] = this.tags;
    return data;
  }
}
